package com.dao.secondary.device;
import com.model.domain.device.GetDeviceObdBatchRepairRecordMappingInfoDO;
import com.model.pojo.device.DeviceObdBatchRepairRecordMappingInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface DeviceObdBatchRepairRecordMappingInfoMapper {
    int deleteByPrimaryKey(@Param("deviceObdBatchRepairRecordMappingInfoId") Long deviceObdBatchRepairRecordMappingInfoId);

    int insert(DeviceObdBatchRepairRecordMappingInfo record);

    int insertSelective(DeviceObdBatchRepairRecordMappingInfo record);

    DeviceObdBatchRepairRecordMappingInfo selectByPrimaryKey(@Param("id") Long id);

    DeviceObdBatchRepairRecordMappingInfo selectByBatchIdAndSdtu(@Param("batchId") Long batchId,@Param("sdtu")String sdtu);

    int updateByPrimaryKeySelective(DeviceObdBatchRepairRecordMappingInfo record);

    int updateByPrimaryKey(DeviceObdBatchRepairRecordMappingInfo record);

    List<DeviceObdBatchRepairRecordMappingInfo> selectList(GetDeviceObdBatchRepairRecordMappingInfoDO getdeviceObdBatchRepairRecordMappingInfoDO);

    void insertListSelective(List<DeviceObdBatchRepairRecordMappingInfo> deviceObdBatchRepairRecordMappingInfoList);

    void updateListSelective(List<DeviceObdBatchRepairRecordMappingInfo> deviceObdBatchRepairRecordMappingInfoList);

    int has(@Param("deviceObdBatchRepairRecordMappingInfoId") Long deviceObdBatchRepairRecordMappingInfoId, @Param("isDelete") Byte isDelete);
    long countByBatchId(Long batchId);
}